package cst.a729yt.zyfypt_729yt;

import java.util.List;

import cst.a729yt.zyfypt_729yt.Bean.ArticleBean;
import cst.a729yt.zyfypt_729yt.Bean.LoginBean;
import cst.a729yt.zyfypt_729yt.Bean.TcaseBean;
import cst.a729yt.zyfypt_729yt.Bean.Tcase_ProjectBean;
import cst.a729yt.zyfypt_729yt.Bean.TopicVideoBean;
import cst.a729yt.zyfypt_729yt.Bean.TwareBean;
import cst.a729yt.zyfypt_729yt.Bean.VideoBean;
import retrofit2.Call;
import retrofit2.http.GET;
import retrofit2.http.Header;
import retrofit2.http.Path;
import retrofit2.http.Query;

/**
 * Created by Administrator on 2017/5/10.
 */

public interface ResService {

    @GET("api.php/login")
    Call<LoginBean> login(@Query("username")String username,
                          @Query("password")String password);
    //reg();
    @GET("api.php/reg")
    Call<String> reg(@Query("username") String username,
                     @Query("password") String password,
                     @Query("tel") String tel,
                     @Query("roleid") int roleid,
                     @Query("realname") String realname,
                     @Query("email") String email);

    @GET("api.php/lists/mod/{mod}")
    Call<List<VideoBean>> getVideoList(@Path("mod") String video,
                                       @Query("page") int page,
                                       @Header("SessionID") String sessionID);

    @GET("api.php/listspecial/mod/{mod}")
    Call<List<TopicVideoBean>>getVideotopicList(@Path("mod") String Video,
                                                @Query("page")int page,
                                                @Header("SessionID")String sessionID);

    @GET("api.php/lists/mod/{mod}")
    Call<List<ArticleBean>> getArticleList(@Path("mod") String mod,
                                           @Query("page") int page,
                                           @Header("SessionID") String sessionID);

    @GET("api.php/lists/mod/{mod}")
    Call<List<TwareBean>> getTwareList(@Path("mod") String mod,
                                       @Query("page") int page,
                                       @Header("SessionID") String sessionID);

    @GET("api.php/lists/mod/{mod}")
    Call<List<TcaseBean>> getTcaseList(@Path("mod") String mod,
                                       @Query("page") int page,
                                       @Header("SessionID") String sessionID);


    @GET("api.php/lists/mod/{mod}")
    Call<List<Tcase_ProjectBean>> getTcasepojList(@Path("mod") String mod,
                                                  @Query("page") int page,
                                                  @Header("SessionID") String sessionID);


    //getDetail();
}
